package com.loooooo.pm2024.modules.secu;

public class LoginedUserHolder {

    private static ThreadLocal<LoginedUser> threadLocal = new ThreadLocal<>();

    public static void put(LoginedUser t) {
        threadLocal.set(t);
    }

    @SuppressWarnings("unchecked")
    public static LoginedUser get() {
        return threadLocal.get();
    }

    public static void remove() {
        threadLocal.remove();
    }
}
